package com.dongdongshop.mapper;

import com.dongdongshop.pojo.GoodsVO;
import com.dongdongshop.pojo.TbGoods;
import com.dongdongshop.pojo.TbGoodsExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface TbGoodsMapper {
    int countByExample(TbGoodsExample example);

    int deleteByExample(TbGoodsExample example);

    int deleteByPrimaryKey(Long id);

    int insert(TbGoods record);

    int insertSelective(TbGoods record);

    List<TbGoods> selectByExample(TbGoodsExample example);

    TbGoods selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") TbGoods record, @Param("example") TbGoodsExample example);

    int updateByExample(@Param("record") TbGoods record, @Param("example") TbGoodsExample example);

    int updateByPrimaryKeySelective(TbGoods record);

    int updateByPrimaryKey(TbGoods record);

    void insertGoods(TbGoods tbGoods);

    List<GoodsVO> listGoods(@Param("sellerId") String sellerId, @Param("auditStatus") String auditStatus, @Param("goodsName") String goodsName, @Param("startIndex") int startIndex, @Param("pageSize") Integer pageSize);

    void updateStatusById(@Param("ids") Long[] ids, @Param("status") String status);

//    int insertGoods(@Param("ID") String sellerId, @Param("tb") TbGoods tbGoods);
}